<f:layout name="Default" />

This Template is responsible for creating a table of domain objects.

If you modify this template, do not forget to change the overwrite settings
in /Configuration/ExtensionBuilder/settings.yaml:
  Resources:
    Private:
      Templates:
        List.html: keep

Otherwise your changes will be overwritten the next time you save the extension in the extension builder

<f:section name="main">

<f:flashMessages />
<div class="panel panel-default">
	<div class="panel-heading ">
        <div class="row">
            <div class="col-lg-4 col-md-4 col-xs-12">
                <f:link.action action="new" class="btn btn-info btn-sm"><span class="glyphicon glyphicon-plus"></span> 新建群发短信</f:link.action>
                <f:link.action action="list" arguments="{excelExport: 1 , keyword : keyword, svalid : svalid, evalid : evalid}" class="btn btn-sm btn-default"><span class="glyphicon glyphicon-export"></span>&nbsp;导出短信</f:link.action>
            </div>
            <div class="col-lg-8 col-md-8 col-xs-12 text-right">
                <f:form action="list" name="search" class="form-inline" method="get">
	          		<div class="input-group">
	                    <label class="control-label">时间</label>
		            	<div class='input-group datetimepicker1'>  
		                	<f:form.textfield name="svalid"  value="{svalid}" class="form-control input-sm " />  
		                	<span class="input-group-addon">  
		                    	<span class="glyphicon glyphicon-calendar"></span>
		                	</span>  
		            	</div>
	          		</div>-
	          		<div class="input-group">
		            	<div class='input-group datetimepicker1'>  
		                	<f:form.textfield name="evalid"  value="{evalid}" class="form-control input-sm " />  
		                	<span class="input-group-addon">  
		                    	<span class="glyphicon glyphicon-calendar"></span>
		                	</span>  
		            	</div>
		               	<script type="text/javascript">
		               		$(function () {  
		                     	$('.datetimepicker1').datetimepicker({  
		                       	format: 'YYYY-MM-DD',  
		                       	locale: moment.locale('zh-cn'),  
		                   		});  
		               		});  
		              	</script>
	          		</div>
	            	<div class="input-group">
                        <f:form.textfield name="keyword" value="{keyword}" class="input-sm form-control" placeholder="请输入关键字..."/>
                        <span class="input-group-btn">
                            <f:form.submit value="搜索" class="btn btn-sm btn-info"/>
                        </span>
                    </div>
	       		</f:form>
            </div>
        </div>
    </div>
    <f:widget.paginate objects="{smss}" as="smssPagination"  configuration="{settings.paginate}">
	  	<table class="table table-hover">
	      	<thead>
	          	<tr role="row">
	              	<th>序号</th>
	              	<th>签名</th>
	              	<th>模板编号</th>
	              	<th>时间</th>
	              	<th>状态</th>
	              	<th>成功率</th>
	              	<th>总计</th>
	              	<th class="text-center">操作</th>
	          	</tr>
	      	</thead>
	    	<tbody>
	          	<f:for each="{smssPagination}" as="sms" iteration="num">
	  	            <tr>
	  	            	<td>{f:cObject(typoscriptObjectPath:'lib.calc',data:'{num.cycle}+({page}-1)*{settings.paginate.itemsPerPage}')}</td>
	  	                <td>{sms.sender}</td>
	  	                <td>{sms.modelNum}</td>
	  	                <td>{sms.crdate->f:format.date(format:'Y/m/d H:i')}</td>
	  	                <td>
	  	                	<f:if condition="{sms.sendStatus}=='0'">未发送</f:if>
	                        <f:if condition="{sms.sendStatus}=='1'">已发送</f:if>
	                    </td>
	                    <td>{sms.successRate} %</td>
	                    <td>{sms.total} 条</td>
	  	                <td class="text-right">
	                      	<f:link.action action="edit" arguments="{sms:sms}" class="btn btn-primary btn-xs {f:if(condition:'{sms.sendStatus}!=0',then:'disabled')}">
	                        	<span class="glyphicon glyphicon-edit"></span>&nbsp;编辑
	                      	</f:link.action>
	                      	<f:link.action action="subInfo" arguments="{sms:sms}" class="btn btn-success btn-xs {f:if(condition:'{sms.sendStatus}!=0', then:'disabled')}" onclick="return confirm('发送后无法修改，您确定要发送吗?');" >
	                        	<span class="glyphicon glyphicon-send"></span>&nbsp;发送
	                      	</f:link.action>
	                      	<f:link.action action="delete" arguments="{sms:sms}" class="btn btn-warning btn-xs {f:if(condition:'{sms.sendStatus}!=0', then:'disabled')}"  onclick="return confirm('您确定要删除吗?');" >
	                        	<span class="glyphicon glyphicon-remove-circle"></span>&nbsp;删除
	                      	</f:link.action>
	                      	<f:if condition="{sms.sendStatus}!=0">
		                      	<f:link.action action="tailLog" pageUid="{settings.logPid}" arguments="{massuid:sms.uid,type:1,form:form}" class="btn btn-success btn-xs" >
		                        	<span class="glyphicon glyphicon-book"></span>&nbsp;日志
		                      	</f:link.action>
	                      	</f:if>
	  	                </td>
	  	            </tr>
	  	        </f:for>  
	      	</tbody>
	    </table>
	</f:widget.paginate>
</div>
</f:section>